(function(window, undefined) {
    "use strict";

    function lQuery(id) {
        if (!id) {
            return false;
        }
        this.oDiv = document.getElementById(id);
    }

    lQuery.prototype.setWidth = function(name, value) {
        this.oDiv.style[name] = value;
        return this;
    }
    lQuery.prototype.setheight = function(name, value) {
        this.oDiv.style[name] = value;
        return this;
    }

    /*无new 实例化*/
    function $(args) {
        return new lQuery(args);
    }

    window.$ = window.lQuery = $;

    $.version = 0.01;

    /*插件*/
    $.fn = lQuery.prototype;
    $.fn.extend = function(json) {
        for (var name in json) {
            lQuery.prototype[name] = json[name];
        }
    }


})(window);
